package com.example.dell.library.bean;

import cn.bmob.v3.BmobObject;
import cn.bmob.v3.datatype.BmobFile;

public class Book extends BmobObject {
    private String name;//书名
    private BmobFile imgFile;//书图片
    private Boolean isInIt;//是否在馆
    private Integer bookNums;//书库存数量
    private String author;//作者
    private String publish;//出版社
    private String type;//书类型，如经济学，文学


    public Book(){}

    public Book(String name, BmobFile imgFile, Boolean isInIt) {
        this.name = name;
        this.imgFile = imgFile;
        this.isInIt = isInIt;
    }

    public Book(BmobFile imgFile, String name, String author) {
        this.imgFile = imgFile;
        this.name = name;
        this.author = author;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getPublish() {
        return publish;
    }

    public void setPublish(String publish) {
        this.publish = publish;
    }

    public int getBookNums() {
        return bookNums;
    }

    public void setBookNums(int bookNums) {
        this.bookNums = bookNums;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public BmobFile getImgFile() {
        return imgFile;
    }

    public void setImgFile(BmobFile imgFile) {
        this.imgFile = imgFile;
    }

    public Boolean getInIt() {
        return isInIt;
    }

    public void setInIt(Boolean inIt) {
        isInIt = inIt;
    }
}
